package com.dragon.test.controler;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.dragon.test.service.ICustomerService;

public class Client {

	public static void main(String[] args) {
		ApplicationContext aContext = new ClassPathXmlApplicationContext("bean.xml");
		ICustomerService customerService = (ICustomerService) aContext.getBean("customerService");
		System.out.println(customerService);
		customerService.saveCustomer();
		
		//customerService.deleteCustomer();
	}

}
